package com.igeek.oa.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.igeek.oa.entity.Officesupplies;
import com.igeek.oa.mapper.OfficesuppliesMapper;
import com.igeek.oa.result.Result;
import com.igeek.oa.service.IOfficesuppliesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 办公用品表 服务实现类
 * </p>
 *
 * @author author
 * @since 2024-08-28
 */
@Service
public class OfficesuppliesServiceImpl extends ServiceImpl<OfficesuppliesMapper, Officesupplies> implements IOfficesuppliesService {
    @Autowired
    private OfficesuppliesMapper officesuppliesMapper;
    @Transactional
    @Override
    public List<Officesupplies> getOfficesupplies() {
        LambdaQueryWrapper<Officesupplies> officesuppliesLambdaQueryWrapper = new LambdaQueryWrapper<>();
        List<Officesupplies> officesupplies = officesuppliesMapper.selectList(officesuppliesLambdaQueryWrapper);
        return officesupplies;
    }
}
